<?php

class Post extends AppModel
{
    var $hasOne = array("Site");
    var $hasMany = array(
        "Embed",
        "Photo" => array(
            'foreignKey' => 'object_key',
            'conditions' => array('object_type' => 'post')
        ),);
    
}

?>